package com.yusong.evenserialportdemo

import android.app.Application
import androidx.multidex.MultiDex
import java.util.concurrent.Executors
import kotlin.properties.Delegates

/**
 *
 * Created by feisher on 2020-07-30.
 */
class App : Application() {
    override fun onCreate() {
        super.onCreate()
        instace = this
        MultiDex.install(this)
    }


    companion object{
        var instace :  App  by Delegates.notNull()
//        @JvmStatic
//        var scheduledThreadPoolExecutor = ScheduledThreadPoolExecutor(5, BasicThreadFactory.Builder().namingPattern("轮询").daemon(false).build())
        @JvmStatic
        var threadPool = Executors.newCachedThreadPool()
    }

}



